package net.maku.generator.utils;

import java.util.List;
import com.spire.doc.*;
public class Merge {
    public static String wordMerge(List<String> wordPathList){

        Document document=new Document(wordPathList.get(0));
        for(int i=1;i<wordPathList.size();i++){
            document.insertTextFromFile(wordPathList.get(i), FileFormat.Docx_2013);
        }
        String outPutPath="C:\\wordTempleGenerate\\"+"mergeWord"+System.currentTimeMillis()+".docx";
        document.saveToFile(outPutPath, FileFormat.Docx_2013);
        return outPutPath;
    }
}
